﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Frogism.Domain {
  public class WorkoutTotal {
    public DateTime DateStart { get; set; }
    public decimal BurnedCalories { get; set; }
    public decimal BurnedFat { get { return tofat(BurnedCalories); } }
    public decimal GoalCalories { get; set; }
    public decimal GoalFat { get{ return tofat(GoalCalories); } }
       public decimal DiffCalories { get { return GoalCalories - BurnedCalories; } }
       public decimal DiffFat { get { return GoalFat - BurnedFat; } }
       private decimal tofat(decimal cals) {
         return cals / 3500;
       }
  }
}
